package com.muyi.dao;

import com.muyi.pojo.entity.Account;
import com.muyi.pojo.entity.User;

import java.util.List;

public interface UserDao {
    boolean judgeUserExists(String nickname, String gender, String contact) throws Exception;

    int addUser(User user) throws Exception;

    int deleteUserById(Integer user_id) throws Exception;

    int updateUser(User user) throws Exception;

    int register(Account account) throws Exception;

    List<User> getUserBySearch(User user, Integer pageNo, Integer pageSize) throws Exception;

    long getTotal(User user) throws Exception;

    User getUserById(Integer user_id) throws Exception;

    Account login(String nickname, String pwd) throws Exception;

    int deleteUserByIds(Integer[] ids) throws Exception;


}
